package com.patterns.abstractFortory.commonAbstractFactory.abstracts;

import com.patterns.abstractFortory.commonAbstractFactory.productA.AbstractProductA;
import com.patterns.abstractFortory.commonAbstractFactory.productA.ProductA1;
import com.patterns.abstractFortory.commonAbstractFactory.productB.AbstractProductB;
import com.patterns.abstractFortory.commonAbstractFactory.productB.ProductB1;

/**
 * Created by Xiao Yiyun on 2017/4/19.
 */
public class Creator1 extends AbstractCreator {
    public AbstractProductA createProductA() {
        return new ProductA1();
    }
    public AbstractProductB createProductB() {
        return new ProductB1();
    }
}